package networking.assignments;

import java.io.Serializable;

public class Credentials implements Serializable {

	private static final long serialVersionUID = 1812547056581020311L;
	private String username, password;

	public Credentials(String username, String password) {
		this.username = username;
		this.password = password;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Credentials) {
			Credentials a = (Credentials) obj;
			if (a.username.equals(this.username)
					&& a.password.equals(this.password))
				return true;
			else
				return false;
		} else
			return false;
	}
}
